package com.banach.prema.dto.query;

import com.alibaba.fastjson.annotation.JSONField;
import com.ego.framework.annotation.ReqParam;
import com.ego.framework.dto.PageQuery;

import java.time.LocalDateTime;

/**
 * @Author ajun
 * @Desc
 * @Date 2025/5/20 16:18
 */
public class AlarmPageQuery extends PageQuery {
    @ReqParam(label = "标题")
    private String title;
    @ReqParam(label = "所属省份")
    private String province;//所属省份
    @ReqParam(label = "所属城市")
    private String city;//所属城市
    @ReqParam(label = "所属区划")
    private String district;//所属区划
    @ReqParam(label = "开始时间")
    private LocalDateTime  beginTime;

    @ReqParam(label = "结束时间")
    private LocalDateTime  endTime;

    @JSONField(deserialize = false)
    private Long userId;//发布人



    public LocalDateTime getBeginTime() {
        return beginTime;
    }

    public AlarmPageQuery setBeginTime(LocalDateTime beginTime) {
        this.beginTime = beginTime;
        return this;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public AlarmPageQuery setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    public String getProvince() {
        return province;
    }

    public AlarmPageQuery setProvince(String province) {
        this.province = province;
        return this;
    }

    public String getCity() {
        return city;
    }

    public AlarmPageQuery setCity(String city) {
        this.city = city;
        return this;
    }

    public String getDistrict() {
        return district;
    }

    public AlarmPageQuery setDistrict(String district) {
        this.district = district;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public AlarmPageQuery setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public AlarmPageQuery setTitle(String title) {
        this.title = title;
        return this;
    }
}
